package com.xiaobingby.common.entity;

import com.baomidou.mybatisplus.plugins.Page;

import java.util.List;

/**
 * @author 李磊
 * @date 2019/5/8
 */
public class EUDataGridResult {
    private long total;
    private List<?> rows;

    public EUDataGridResult(long total, List<?> rows) {
        this.total = total;
        this.rows = rows;
    }

    public static EUDataGridResult newInstance(Page page){
        return new EUDataGridResult(page.getTotal(),page.getRecords());
    }


    public long getTotal() {
        return total;
    }
    public void setTotal(long total) {
        this.total = total;
    }
    public List<?> getRows() {
        return rows;
    }
    public void setRows(List<?> rows) {
        this.rows = rows;
    }
}
